for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
/*
* This file is part of the Cjt Terabyte LLC [yii2-extension].
*
* (c) Cjt Terabyte LLC [yii2-extension] <http://github.com/cjtterabytesoft>.
* For the full copyright and license information, please view the LICENSE.md.
* file that was distributed with this source code.
* @link http://www.cjtterabyte.com.
* @author Wilmer Arámbula <[email protected]>.
* @copyright (c) 2015 Cjt Terabyte LLC.
* @Extension: [yii2-adminlte-advanced].
* @JS [Site - Custom].
* @since 1.0
*/
(function ($) {
$
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.
yii.confirm = function(message, ok, cancel) {
yii
/** global: yii */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
bootbox.confirm(message, function(result) {
bootbox
/** global: bootbox */
if (result) { !ok || ok(); } else { !cancel || cancel(); }
});
}
})(window.jQuery);
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.